/* http://static.cdn.ocregister.com/common/loader/?js=/share/js/json,/share/js/pork-iframe,/share/js/requestbatch,/share/js/requesttypes,/share/js/sitelife-proxy,/share/js/sitelife&v=2 */ var JSON=function(){var m={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},s={"boolean":function(x){return String(x)},number:function(x){return isFinite(x)?String(x):"null"},string:function(x){if(/["\\\x00-\x1f]/.test(x)){x=x.replace(/([\x00-\x1f\\"])/g,function(a,b){var c=m[b];if(c){return c}c=b.charCodeAt();return"\\u00"+Math.floor(c/16).toString(16)+(c%16).toString(16)})}return'"'+x+'"'},object:function(x){if(x){var a=[],b,f,i,l,v;if(x instanceof Array){a[0]="[";l=x.length;for(i=0;i="0"&&ch<="9"){n+=ch;next()}if(ch=="."){n+=".";while(next()&&ch>="0"&&ch<="9"){n+=ch}}if(ch=="e"||ch=="E"){n+="e";next();if(ch=="-"||ch=="+"){n+=ch;next()}while(ch>="0"&&ch<="9"){n+=ch;next()}}v=+n;if(!isFinite(v)){}else{return v}}function word(){switch(ch){case"t":if(next()=="r"&&next()=="u"&&next()=="e"){next();return true}break;case"f":if(next()=="a"&&next()=="l"&&next()=="s"&&next()=="e"){next();return false}break;case"n":if(next()=="u"&&next()=="l"&&next()=="l"){next();return null}break}error("Syntax error")}function value(){white();switch(ch){case"{":return object();case"[":return array();case'"':return string();case"-":return number();default:return ch>="0"&&ch<="9"?number():word()}}return value()}}}();document.iframeLoaders={};iframe=function(){this.initialize.apply(this,arguments)};iframe.prototype={initialize:function(d,b,c){if(!b){b={}}this.form=d;this.uniqueId=c;document.iframeLoaders[this.uniqueId]=this;this.transport=this.getTransport();this.onComplete=b.onComplete||null;this.update=this.$(b.update)||null;this.updateMultiple=b.multiple||false;if(((navigator.vendor&&(navigator.vendor.indexOf("Apple"))>-1)||window.opera)&&(/\/Direct\/Process(\?|$)/.test(d.action))&&d.elements&&(d.elements.length==1)){var a=d.action+"?jsonRequest="+escape(d.elements[0].value),g=this.transport.contentWindow||this.transport.contentDocument;if(a.length<80000){if(g.document){g=g.document}try{g.location.replace(a);return}catch(f){}}}d.target="frame_"+this.uniqueId;d.setAttribute("target","frame_"+this.uniqueId);d.submit()},onStateChange:function(){this.transport=this.$("frame_"+this.uniqueId);try{var doc=this.transport.contentDocument.document.body.innerHTML;this.transport.contentDocument.document.close()}catch(e){try{var doc=this.transport.contentWindow.document.body.innerHTML;this.transport.contentWindow.document.close()}catch(e){try{var doc=this.transport.document.body.innerHTML;this.transport.document.body.close()}catch(e){try{var doc=window.frames["frame_"+this.uniqueId].document.body.innerText}catch(e){}}}}this.transport.responseText=doc;if(this.onComplete){setTimeout(this.bind(function(){this.onComplete(this.transport)},this),10)}if(this.update){setTimeout(this.bind(function(){this.update.innerHTML=this.transport.responseText},this),10)}if(this.updateMultiple){setTimeout(this.bind(function(){try{var hasscript=false;eval("var inputObject = "+this.transport.responseText);for(var i in inputObject){if(i=="script"){hasscript=true}else{if(elm=this.$(i)){elm.innerHTML=inputObject[i]}else{}}}if(hasscript){eval(inputObject.script)}}catch(e){}},this),10)}},getTransport:function(){var a=document.createElement("DIV"),b;a.setAttribute("style","width: 0; height: 0; margin: 0; padding: 0; visibility: hidden; overflow: hidden");if(navigator.userAgent.indexOf("MSIE")>0&&navigator.userAgent.indexOf("Opera")==-1){a.style.width=0;a.style.height=0;a.style.margin=0;a.style.padding=0;a.style.visibility="hidden";a.style.overflow="hidden";a.innerHTML=''}else{b=document.createElement("iframe");b.setAttribute("name","frame_"+this.uniqueId);b.setAttribute("id","frame_"+this.uniqueId);b.addEventListener("load",this.bind(function(){this.onStateChange()},this),false);a.appendChild(b)}document.body.appendChild(a);return b},bind:function(a,b){return function(){return a.apply(b,arguments)}},"$":function(a){return document.getElementById(a)}};RequestBatch=function(){this.initialize.apply(this,arguments)};var counter=0;var pendingRequests=0;function DirectAccessErrorHandler(b,a){}RequestBatch.prototype={initialize:function(){this.UniqueId=counter++;this.Requests=new Array()},AddToRequest:function(a){this.Requests[this.Requests.length]=a},BeginRequest:function(a,d){pendingRequests++;var b=JSON.stringify(this);var c=generateForm(this.UniqueId,a,b);new iframe(c,{onComplete:function(e){processResponse(d,e)}},this.UniqueId);this.UniqueId=counter++}};function generateForm(m,e,a){var d=document.createElement("form");d.name="f"+m;d.id="f"+m;d.action=e;var k=document.createElement("input");k.name="jsonRequest";k.type="hidden";k.value=a;d.appendChild(k);d.method="post";if(navigator.userAgent.toLowerCase().indexOf("firefox")!=-1){var g=e.indexOf("?")==-1?"?":"&";var h=e+g+"jsonRequest="+escape(a);if(h.length<15000){var l=e.indexOf("sid=");if(l!=-1){var c=e.indexOf("&",l);var b=e.substring(l+"sid=".length,c==-1?e.length:c);var f=document.createElement("input");f.name="sid";f.type="hidden";f.value=b;d.appendChild(f);d.action=e.substring(0,l-1)}d.method="get"}}document.body.appendChild(d);return d}function processResponse(f,c){pendingRequests--;try{var b=unescape(c.responseText);var a=JSON.parse(b);try{f(a.ResponseBatch)}catch(d){DirectAccessErrorHandler("exception during client callback",d)}}catch(d){DirectAccessErrorHandler("exception during processResponse",d)}}function getPendingRequestCount(){return pendingRequests}(function(){var a=function(){return function(){this.initialize.apply(this,arguments)}};UserKey=a();UserKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.UserKey=c}};CommentKey=a();CommentKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.CommentKey=c}};ArticleKey=a();ArticleKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.ArticleKey=c}};PersonaMessageKey=a();PersonaMessageKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.PersonaMessageKey=c}};ReviewKey=a();ReviewKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.ReviewKey=c}};GalleryKey=a();GalleryKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.GalleryKey=c}};PhotoKey=a();PhotoKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.PhotoKey=c}};VideoKey=a();VideoKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.VideoKey=c}};CommentPage=a();CommentPage.prototype={initialize:function(f,b,d,c){var e=new Object();e.ArticleKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.CommentPage=e}};PersonaMessagePage=a();PersonaMessagePage.prototype={initialize:function(f,b,d,c){var e=new Object();e.UserKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.PersonaMessagePage=e}};ReviewPage=a();ReviewPage.prototype={initialize:function(f,b,d,c){var e=new Object();e.ArticleKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.ReviewPage=e}};MediaType=a();MediaType.prototype={initialize:function(b){var c=new Object();c.Name=b;this.MediaType=c}};PublicGalleryPage=a();PublicGalleryPage.prototype={initialize:function(c,d,b){var e=new Object();e.NumberPerPage=c;e.OnPage=d;e.MediaType=b;this.PublicGalleryPage=e}};UserGalleryPage=a();UserGalleryPage.prototype={initialize:function(f,c,d,b){var e=new Object();e.UserKey=f;e.NumberPerPage=c;e.OnPage=d;e.MediaType=b;this.UserGalleryPage=e}};PhotoPage=a();PhotoPage.prototype={initialize:function(e,b,c){var d=new Object();d.GalleryKey=e;d.NumberPerPage=b;d.OnPage=c;this.PhotoPage=d}};VideoPage=a();VideoPage.prototype={initialize:function(e,b,c){var d=new Object();d.GalleryKey=e;d.NumberPerPage=b;d.OnPage=c;this.VideoPage=d}};CommentAction=a();CommentAction.prototype={initialize:function(c,f,b,e){var d=new Object();d.CommentOnKey=c;d.OnPageUrl=f;d.OnPageTitle=b;d.CommentBody=e;this.CommentAction=d}};ReviewAction=a();ReviewAction.prototype={initialize:function(h,b,k,g,c,l,d,f){var e=new Object();e.ReviewOnKey=h;e.OnPageUrl=b;e.OnPageTitle=k;e.ReviewTitle=g;e.ReviewRating=c;e.ReviewBody=l;e.ReviewPros=d;e.ReviewCons=f;this.ReviewAction=e}};RecommendAction=a();RecommendAction.prototype={initialize:function(c){var b=new Object();b.RecommendThisKey=c;this.RecommendAction=b}};RateAction=a();RateAction.prototype={initialize:function(b,c){var d=new Object();d.RateThisKey=b;d.Rating=c;this.RateAction=d}};DeleteContentAction=a();DeleteContentAction.prototype={initialize:function(c){var b=new Object();b.DeleteThisContent=c;this.DeleteContentAction=b}};EmailContentAction=a();EmailContentAction.prototype={initialize:function(e,c,b){var d=new Object();d.ToAddress=e;d.Subject=c;d.Body=b;this.EmailContentAction=d}};ReportAbuseAction=a();ReportAbuseAction.prototype={initialize:function(c,e,d){var b=new Object();b.ReportThisKey=c;b.AbuseReason=e;b.AbuseDescription=d;this.ReportAbuseAction=b}};Category=a();Category.prototype={initialize:function(b){var c=new Object();c.Name=b;this.Category=c}};Section=a();Section.prototype={initialize:function(b){var c=new Object();c.Name=b;this.Section=c}};UpdateArticleAction=a();UpdateArticleAction.prototype={initialize:function(f,g,c,e,b){var d=new Object();d.UpdateArticle=f;d.OnPageUrl=g;d.OnPageTitle=c;d.Section=e;d.Categories=b;this.UpdateArticleAction=d}};UpdateGalleryAction=a();UpdateGalleryAction.prototype={initialize:function(e,c,k,f,h,l,g,b){var d=new Object();d.UpdateGallery=e;d.GalleryType=c;d.MediaType=k;d.Title=f;d.Description=h;d.Tags=l;d.Section=g;d.GalleryPromo=b;this.UpdateGalleryAction=d}};UpdatePhotoAction=a();UpdatePhotoAction.prototype={initialize:function(f,g,c,b,e){var d=new Object();d.UpdatePhoto=f;d.Title=g;d.Description=c;d.Tags=b;d.Section=e;this.UpdatePhotoAction=d}};UpdateVideoAction=a();UpdateVideoAction.prototype={initialize:function(b,g,d,c,f){var e=new Object();e.UpdateVideo=b;e.Title=g;e.Description=d;e.Tags=c;e.Section=f;this.UpdateVideoAction=e}};GalleryType=a();GalleryType.prototype={initialize:function(b){var c=new Object();c.Name=b;this.GalleryType=c}};GalleryPromo=a();GalleryPromo.prototype={initialize:function(e,c,b){var d=new Object();d.Title=e;d.Body=c;d.PhotoKey=b}};UserTier=a();UserTier.prototype={initialize:function(b){var c=new Object();c.Name=b;this.UserTier=c}};Activity=a();Activity.prototype={initialize:function(b){var c=new Object();c.Name=b;this.Activity=c}};DiscoverArticlesAction=a();DiscoverArticlesAction.prototype={initialize:function(f,e,c,h,b,d){var g=new Object();g.SearchSections=f;g.SearchCategories=e;g.LimitToContributors=c;g.Activity=h;g.Age=b;g.MaximumNumberOfDiscoveries=d;this.DiscoverArticlesAction=g}};AddFriendAction=a();AddFriendAction.prototype={initialize:function(c){var b=new Object();b.FriendUserKey=c;this.AddFriendAction=b}};AddPersonaMessageAction=a();AddPersonaMessageAction.prototype={initialize:function(d,b){var c=new Object();c.ToUserKey=d;c.Body=b;this.AddPersonaMessageAction=c}};RemovePersonaMessageAction=a();RemovePersonaMessageAction.prototype={initialize:function(c){var b=new Object();b.PersonaMessageKey=c;this.RemovePersonaMessageAction=b}};ApproveFriendAction=a();ApproveFriendAction.prototype={initialize:function(d,b){var c=new Object();c.FriendUserKey=d;c.IsApproved=b;this.ApproveFriendAction=c}};RemoveFriendAction=a();RemoveFriendAction.prototype={initialize:function(c){var b=new Object();b.FriendUserKey=c;this.RemoveFriendAction=b}};FriendPage=a();FriendPage.prototype={initialize:function(f,b,d,c){var e=new Object();e.UserKey=f;e.NumberPerPage=b;e.OnPage=d;e.IsPendingList=c;this.FriendPage=e}};IsFriend=a();IsFriend.prototype={initialize:function(d,c){var b=new Object();b.FriendUserKey=d;b.UserKey=c;this.IsFriend=b}};DiscoverContentAction=a();DiscoverContentAction.prototype={initialize:function(f,e,c,h,k,b,d){var g=new Object();g.SearchSections=f;g.SearchCategories=e;g.LimitToContributors=c;g.Activity=h;g.ContentType=k;g.Age=b;g.MaximumNumberOfDiscoveries=d;this.DiscoverContentAction=g}};ContentType=a();ContentType.prototype={initialize:function(b){var c=new Object();c.Name=b;this.ContentType=c}};UpdateUserProfileAction=a();UpdateUserProfileAction.prototype={initialize:function(b,k,q,d,l,n,r,o,c,e,h,m,p,f){var g=new Object();g.UserKey=b;g.AboutMe=k;g.Location=q;g.Signature=d;g.DateOfBirth=l;g.Sex=n;g.PersonaPrivacyMode=r;g.CommentsTabVisible=o;g.PhotosTabVisible=c;g.MessagesOpenToEveryone=e;g.IsEmailNotificationsEnabled=h;g.SelectedStyleId=m;g.CustomAnswers=p;g.ExtendedProfile=f;this.UpdateUserProfileAction=g}};SearchAction=a();SearchAction.prototype={initialize:function(d,c,b,e){var f=new Object();f.SearchType=d;f.SearchString=c;f.NumberPerPage=b;f.OnPage=e;this.SearchAction=f}};WatchItemPage=a();WatchItemPage.prototype={initialize:function(e,b,c){var d=new Object();d.UserKey=e;d.NumberPerPage=b;d.OnPage=c;this.WatchItemPage=d}};AddWatchItemAction=a();AddWatchItemAction.prototype={initialize:function(e,c,f,b){var d=new Object();d.UserKey=e;d.WatchTargetKey=c;d.WatchItemTitle=f;d.WatchItemUrl=b;this.AddWatchItemAction=d}};DeleteWatchItemAction=a();DeleteWatchItemAction.prototype={initialize:function(d,b){var c=new Object();c.UserKey=d;c.WatchTargetKey=b;this.DeleteWatchItemAction=c}};BlogKey=a();BlogKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.BlogKey=c}};BlogPostKey=a();BlogPostKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.BlogPostKey=c}};BlogPostPage=a();BlogPostPage.prototype={initialize:function(f,b,d,c){var e=new Object();e.BlogKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.BlogPostPage=e}};BlogPostArchiveCount=a();BlogPostArchiveCount.prototype={initialize:function(c){var b=new Object();b.BlogKey=c;this.BlogPostArchiveCount=b}};BlogPostArchiveContentPage=a();BlogPostArchiveContentPage.prototype={initialize:function(g,f,b,d,c){var e=new Object();e.BlogKey=g;e.Month=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.BlogPostArchiveContentPage=e}};UserCommentPage=a();UserCommentPage.prototype={initialize:function(f,b,d,c){var e=new Object();e.UserKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.UserCommentPage=e}};RecentBlogTag=a();RecentBlogTag.prototype={initialize:function(c){var b=new Object();b.BlogKey=c;this.RecentBlogTag=b}};RecentUserPhotoPage=a();RecentUserPhotoPage.prototype={initialize:function(e,b,c){var d=new Object();d.UserKey=e;d.NumberPerPage=b;d.OnPage=c;this.RecentUserPhotoPage=d}};RecentUserVideoPage=a();RecentUserVideoPage.prototype={initialize:function(e,b,c){var d=new Object();d.UserKey=e;d.NumberPerPage=b;d.OnPage=c;this.RecentUserVideoPage=d}};RecentPublicGalleryPage=a();RecentPublicGalleryPage.prototype={initialize:function(e,b,c){var d=new Object();d.UserKey=e;d.NumberPerPage=b;d.OnPage=c;this.RecentPublicGalleryPage=d}};RecentUserActivity=a();RecentUserActivity.prototype={initialize:function(c){var b=new Object();b.UserKey=c;this.RecentUserActivity=b}};RecentForumDiscussionPage=a();RecentForumDiscussionPage.prototype={initialize:function(e,b,c){var d=new Object();d.UserKey=e;d.NumberPerPage=b;d.OnPage=c;this.RecentForumDiscussionPage=d}};UserGroupForumPage=a();UserGroupForumPage.prototype={initialize:function(f,b,d,c){var e=new Object();e.UserKey=f;e.NumberPerPage=b;e.OnPage=d;e.Sort=c;this.UserGroupForumPage=e}};BlogRollEntry=a();BlogRollEntry.prototype={initialize:function(c,b){var d=new Object();d.Name=c;d.Url=b;this.BlogRollEntry=d}};UpdateBlogAction=a();UpdateBlogAction.prototype={initialize:function(c,f,d,b){var e=new Object();e.BlogKey=c;e.Title=f;e.Tagline=d;e.BlogRollEntries=b;this.UpdateBlogAction=e}};DiscussionKey=a();DiscussionKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.DiscussionKey=c}};CustomItemKey=a();CustomItemKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.CustomItemKey=c}};CustomCollectionKey=a();CustomCollectionKey.prototype={initialize:function(b){var c=new Object();c.Key=b;this.CustomCollectionKey=c}};UpdateCustomItemAction=a();UpdateCustomItemAction.prototype={initialize:function(g,b,f,e,c){var d=new Object();d.CustomItemKey=g;d.Name=b;d.MimeType=f;d.DisplayText=e;d.Content=c;this.UpdateCustomItemAction=d}};AddCustomCollectionAction=a();AddCustomCollectionAction.prototype={initialize:function(b,d){var c=new Object();c.CustomCollectionKey=b;c.CustomCollectionName=d;this.AddCustomCollectionAction=c}};InsertIntoCollectionAction=a();InsertIntoCollectionAction.prototype={initialize:function(c,e,b){var d=new Object();d.CustomCollectionKey=c;d.InsertThisKey=e;d.Position=b;this.InsertIntoCollectionAction=d}};RemoveFromCollectionAction=a();RemoveFromCollectionAction.prototype={initialize:function(d,c,b){var e=new Object();e.CustomCollectionKey=d;e.RemoveThisKey=c;e.Position=b;this.RemoveFromCollectionAction=e}};CustomCollectionPage=a();CustomCollectionPage.prototype={initialize:function(b,c,e,d){var f=new Object();f.CustomCollectionKey=b;f.NumberPerPage=c;f.OnPage=e;f.Sort=d;this.CustomCollectionPage=f}}})();var numUploads=1;var maxUploads=4;function VerifyTOS(){if(!document.getElementById("plckTermsOfPhotoService").checked){alert("Please agree to the terms of service before submitting.");return false}return true}function AddAnotherPhoto(b,a,c){divNode=document.createElement("div");divNode.id="PhotoUpload"+ ++numUploads;divNode.innerHTML="

";document.getElementById(b).appendChild(divNode);if(numUploads>maxUploads){document.getElementById(a).style.display="none"}setTimeout(function(){autofitIframe(c,true)},100);return false}function getCheckedValue(b){var c=b.length;if(c==undefined){if(b.checked){return b.value}else{return""}}for(var a=0;a0)&&(a.lastIndexOf(b)==(a.length-1))){if(a.length>1){a=a.substring(0,a.length-1)}else{return""}}return a}function FixSearchString(b){var a=b.replace(/[\%\&\/\<\>\\\|]+/g,"");a=a.replace(/[\.]{2,}/g,".");a=TrimEnd(a,".");if(a==""){return""}a=TrimEnd(a," ");if(a==""){return""}a=escape(a);a=a.replace(/\+/g,"%2B");return a}var nextGroupID=1;function autofitIframe(b,a){if(document.getElementById){if(this.document.body.scrollHeight==0||(!a&&this.document.body.scrollWidth==0)){setTimeout(function(){autofitIframe(b,a)},150);return}window.parent.document.getElementById(b).style.height=this.document.body.scrollHeight+"px";if(!a){window.parent.document.getElementById(b).style.width=this.document.body.scrollWidth+"px"}}}function isUrl(a){var b=/(ftp|https?|file):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/;return b.test(a)}function ValidateLogin(){function a(b){return document.getElementById(b)}if(a("plckUserName").value==""&&a("plckPassword").value==""){alert("You must provide a UserName and Password");return false}if(a("plckUserName").value==""){alert("You must provide a UserName");return false}if(a("plckPassword").value==""){alert("You must provide a Password");return false}}function onSearchSubmit(a){if($(a+"_Search").value==""){alert("You must provide some query text");return false}}function LimitLength(d,a){var e=d.value;if(!e||e.length==0){return false}var c=e.match(/\r|\n/g);if(!c){return false}var b=c.length;if(e.length>(a+b)){d.value=e.substring(0,a+b)}return false}function mouseX(a){if(a.pageX){return a.pageX}else{if(a.clientX){return a.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)}else{return null}}}function mouseY(a){if(a.pageY){return a.pageY}else{if(a.clientY){return a.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)}else{return null}}}function HideDiv(a){document.getElementById(a).style.display="none"}function ShowDivAtMouse(a,b){posx=mouseX(a)-170;posy=mouseY(a);if(posx<0){posx=10}if(posy<0){posy=10}document.getElementById(b).style.left=posx+"px";document.getElementById(b).style.top=posy+"px";document.getElementById(b).style.display="block"}function ShowReportAbuse(a,b,d){var c=document;c.getElementById("ReportAbuse_Url").value=b;c.getElementById("ReportAbuse_Command").value=d;c.getElementById("ReportAbuse_CommentText").value="";c.getElementById("ReportAbuse_Reason").selectedIndex=0;ShowDivAtMouse(a,"ReportAbuse_Menu");c.getElementById("ReportAbuse_CommentText").focus()}function ReportAbuse(){var b=document.getElementById("ReportAbuse_Url").value;var e=document.getElementById("ReportAbuse_Command").value;var d=document.getElementById("ReportAbuse_CommentText").value;var c=document.getElementById("ReportAbuse_Reason").value;document.getElementById("ReportAbuse_Menu").style.display="none";var a=e+"&plckReason="+gSiteLife.EscapeValue(c)+"&plckURL="+gSiteLife.EscapeValue(b);if(d){a+="&plckAbuseDetail="+gSiteLife.EscapeValue(d)}gSiteLife.__Send(a)}function SiteLifeShowHide(b,a){document.getElementById(b).style.display="none";document.getElementById(a).style.display="block";return false}function DebugShowInnerHTML(d,b){var c=document.getElementById(d);var a=document.createElement("div");a.style.position="absolute";a.style.zIndex="1000";a.innerHTML="[close]";a.innerHTML+="
"+b+"
";c.insertBefore(a,c.childNodes[0])}function ToggleState(){function b(e){return document.getElementById(e)}var d=b("plckCommentApprovalEveryOne");var c=b("plckCommentApprovalNoBody");var a=b("commentSettings");if(d.disabled==true){d.disabled=false;c.disabled=false;a.className=""}else{d.disabled=true;c.disabled=true;a.className="BlogSettings_Disabled"}}function SiteLifeProxy(a){this.apiKey=null;this.__isExplorer=navigator.userAgent.toLowerCase().indexOf("msie")!=-1;this.__isSafari=navigator.userAgent.toLowerCase().indexOf("safari")!=-1;this.__isMac=navigator.platform.toLowerCase().indexOf("mac")!=-1;this.__isMacIE=this.__isMac&&this.__isExplorer;this.debug=false;this.lastHandlerId="";this.__baseUrl=a;this.__sendInvokeCount=0;this.__eventHandlers=new Object()}SiteLifeProxy.prototype.AddEventHandler=function(a,b){this.__eventHandlers[a]=b};SiteLifeProxy.prototype.FireEvent=function(c){if(this.__eventHandlers[c]){var a=new Array();for(var b=1;b');return c};SiteLifeProxy.prototype.InnerHtmlWrite=function(a,e){var d=document.createElement("div");try{if(document.location.href.indexOf("debug=true")>-1){d.innerHTML+="
 ? 
"+e+"
"}else{d.innerHTML+=e;d.style.display="inline"}var c=document.getElementById(a);while(c.childNodes.length>=1){c.removeChild(c.childNodes[0])}c.appendChild(d)}catch(b){alert(a+" Error "+b.number+": "+b.description)}};SiteLifeProxy.prototype.SortTimeStampDescending="TimeStampDescending";SiteLifeProxy.prototype.SortTimeStampAscending="TimeStampAscending";SiteLifeProxy.prototype.SortRecommendationsDescending="RecommendationsDescending";SiteLifeProxy.prototype.SortRecommendationsAscending="RecommendationsAscending";SiteLifeProxy.prototype.SortRatingDescending="RatingDescending";SiteLifeProxy.prototype.SortRatingAscending="RatingAscending";SiteLifeProxy.prototype.KeyTypeExternalResource="ExternalResource";SiteLifeProxy.prototype.PersonaHeaderRequest=function(b){var a=this.__baseUrl+"/Persona/PersonaHeader?plckElementId=personaHDest&plckUserId="+b;this.__Send(a,"personaHeaderScript")};SiteLifeProxy.prototype.PersonaHeader=function(a){this.WriteDiv("personaHDest","Persona_Main");this.PersonaHeaderRequest(a)};SiteLifeProxy.prototype.Persona=function(a){this.WriteDiv("personaDest","Persona_Main");var b=this.GetParameter("plckPersonaPage");if(b&&(typeof this[b]=="function")){this[b](a)}else{this.PersonaHome(a)}};SiteLifeProxy.prototype.LoadPersonaPage=function(a,b){var c=new Object();c.plckPersonaPage=a;c.plckUserId=b;c.slid=b;for(ii=2;ii");this.numCommentsWidgets++;var e=window.onload;function b(){if(e!=null){e()}gSiteLife.GetComments(q,o,a,l,0,m,h,k,d,f,p,c,g,n)}window.onload=b;return false};SiteLifeProxy.prototype.GetComments=function(q,o,b,k,l,m,g,h,d,e,p,a,f,n){q=q||"ExternalResource";b=b||gSiteLife.__StripAnchorFromUrl(window.location.href);b=gSiteLife.EscapeValue(b);o=o||gSiteLife.__StripAnchorFromUrl(window.location.href);k=k||gSiteLife.EscapeValue(document.title);l=l||gSiteLife.GetParameter("plckCurrentPage")||0;m=m||10;g=g||"TimeStampAscending";h=h||false;d=d||"MostRecent";e=e||false;p=p||false;a=gSiteLife.EscapeValue(a)||"";f=f||false;var c=this.__baseUrl+"/Comment/GetPage.rails?plckTargetKeyType="+q+"&plckTargetKey="+escape(o)+"&plckCurrentPage="+l+"&plckItemsPerPage="+m+"&plckSort="+g+"&plckElementId="+n+"&plckTargetUrl="+b+"&plckTargetTitle="+k+"&plckHideView="+e+"&plckHideInput="+p+"&plckRefreshPage="+f+"&plckRedirectToUrl="+a;if(h){c=c+"&plckShowTabs=true&plckTab="+d}this.__Send(c);return false};SiteLifeProxy.prototype.Blog=function(b){this.WriteDiv("blogDest","Persona_Main");var c=this.GetParameter("plckBlogPage");if(c&&c!="Blog"&&(typeof this[c]=="function")){return this[c](b)}else{var a=this.GetParameter("plckCurrentPage")?"plckCurrentPage="+this.GetParameter("plckCurrentPage"):"";return this.BlogSend("Blog","Blog","blogDest","blogScript",b,a)}};SiteLifeProxy.prototype.LoadBlogPage=function(a,b){var c=new Object();c.plckBlogPage=a;c.plckBlogId=b;for(ii=2;ii=0){e=a}for(i=1;i<=b.length;i++){if(e>0&&i<=e){b[i-1].src=this.__baseUrl+"/Content/images/icons/fullstar.gif"}else{b[i-1].src=this.__baseUrl+"/Content/images/icons/emptystar.gif"}}switch(e){case 0:d.innerHTML="Not rated";break;case 1:d.innerHTML="Horrible!";break;case 2:d.innerHTML="Not for me.";break;case 3:d.innerHTML="It's alright.";break;case 4:d.innerHTML="I like it.";break;case 5:d.innerHTML="I love it!";break;default:d.innerHTML="Not rated"}};SiteLifeProxy.prototype.Review=function(f,d,a,h,c,e,g){var b="Reviews_Container";this.WriteDiv(b);return this.GetReviews(f,d,a,h,c,e,g)};SiteLifeProxy.prototype.ReviewClickStar=function(b,a){document.getElementById(a+"Rating-value").value=b};SiteLifeProxy.prototype.GetReviews=function(f,d,a,h,b,e,g){f=f||"ExternalResource";d=gSiteLife.EscapeValue(d)||gSiteLife.EscapeValue(gSiteLife.__StripAnchorFromUrl(window.location.href));a=gSiteLife.EscapeValue(a)||gSiteLife.EscapeValue(document.title);reviewCateogry=h||"Uncategorized";b=b||10;e=e||"TimeStampAscending";g=g||0;var c=this.__baseUrl+"/Review/Reviews?plckElementId=Reviews_Container&plckTargetKey="+escape(d)+"&plckTargetKeyType="+f+"&plckReviewedTitle="+a+"&plckReviewCategory="+h+"&plckSort="+e+"&plckParentUrl="+gSiteLife.EscapeValue(gSiteLife.__StripAnchorFromUrl(window.location.href))+"&plckParentTitle="+gSiteLife.EscapeValue(document.title)+"&plckCurrentPage="+g+"&plckPageSize="+b;this.__Send(c);return false};SiteLifeProxy.prototype.SummaryArticlesMostCommented=function(a){return this.SummaryPanel("SummaryArticlesMostCommented",a)};SiteLifeProxy.prototype.SummaryArticlesMostRecommended=function(a){return this.SummaryPanel("SummaryArticlesMostRecommended",a)};SiteLifeProxy.prototype.SummaryPhotosRecentPhotosByTag=function(b,a,c){return this.SummaryPanel("SummaryPhotosRecentPhotosByTag",b,a,c)};SiteLifeProxy.prototype.SummaryPhotosRecentUserPhotos=function(b,a,c){return this.SummaryPanel("SummaryPhotosRecentUserPhotos",b,a,c)};SiteLifeProxy.prototype.SummaryPhotosRecentPhotos=function(b,a,c){return this.SummaryPanel("SummaryPhotosRecentPhotos",b,a,c)};SiteLifeProxy.prototype.SummaryPhotosMostRecommendedPhotos=function(a,b){return this.SummaryPanel("SummaryPhotosMostRecommendedPhotos",a,"",b)};SiteLifeProxy.prototype.SummaryPhotosMostRecommendedUserPhotos=function(a,b){return this.SummaryPanel("SummaryPhotosMostRecommendedUserPhotos",a,"",b)};SiteLifeProxy.prototype.SummaryPhotosMostRecommendedGalleries=function(a){return this.SummaryPanel("SummaryPhotosMostRecommendedGalleries",a)};SiteLifeProxy.prototype.SummaryForumsRecentDiscussions=function(a,b){return this.SummaryPanel("SummaryForumsRecentDiscussions",a,"",b)};SiteLifeProxy.prototype.SummaryBlogsRecent=function(b,a){return this.SummaryPanel("SummaryBlogsRecent",b,a)};SiteLifeProxy.prototype.SummaryBlogsRecentPostsByTag=function(b,a,c){return this.SummaryPanel("SummaryBlogsRecentPostsByTag",b,a,c)};SiteLifeProxy.prototype.SummaryBlogsRecentPosts=function(b,a,c){return this.SummaryPanel("SummaryBlogsRecentPosts",b,a,c)};SiteLifeProxy.prototype.SummaryBlogsMostRecommendedPosts=function(b,a,c){return this.SummaryPanel("SummaryBlogsMostRecommendedPosts",b,a,c)};SiteLifeProxy.prototype.SummaryPersonaProfileRecent=function(a){return this.SummaryPanel("SummaryPersonaProfileRecent",a)};SiteLifeProxy.prototype.SummaryPanel=function(c,d,b,e){var a="Summary_Container"+this.SID;if(this.numSummaryWidgets){a+=this.numSummaryWidgets++}else{this.numSummaryWidgets=1}this.WriteDiv(a,a);return this.SummarySend(c,a,a+"Script","plckCount",d,"plckTagFilter",b,"plckFilterBySiteOfOrigin",e)};SiteLifeProxy.prototype.SummarySend=function(a,b,d){var c=this.__baseUrl+"/Summary/"+a+"?plckElementId="+b;for(ii=3;ii")}function submitRequest(){pullCounts(articleid)}function pullCounts(a){var b=new ArticleKey(a);var c=new RequestBatch();c.AddToRequest(b);c.BeginRequest(serverUrl,renderArticle)}function renderArticle(b){if(b.Responses.length==0){var c=document.getElementById("articleCommentCount"+articleid);var e=document.getElementById("articleRecommendCount"+articleid);c.style.visibility="hidden";e.style.visibility="hidden";c.innerHTML=0;e.innerHTML=0}else{var d=b.Responses[0].Article;var c=document.getElementById("articleCommentCount"+d.ArticleKey.Key);var e=document.getElementById("articleRecommendCount"+d.ArticleKey.Key);c.innerHTML=d.Comments.NumberOfComments;e.innerHTML=d.Recommendations.NumberOfRecommendations;var f=d.Recommendations.CurrentUserHasRecommended;if(f=="True"){var a=document.getElementById("recommendlink"+d.ArticleKey.Key);a.innerHTML="Recommended"}c.style.visibility="visible";e.style.visibility="visible"}}function recommendReview(a){var d=new RequestBatch();var c=new ArticleKey(a);var b=new RecommendAction(c);d.AddToRequest(b);d.BeginRequest(serverUrl,recommendationComplete)}function recommendationComplete(a){if(a.Responses.length>0){submitRequest()}else{updateArticle()}}function updateArticle(){var e=new ArticleKey(articleid);var c=document.location.href;var d=new Section(sectionTitle);var a=new Array();var f=new RequestBatch();var b=new UpdateArticleAction(e,c,pageTitle,d);f.AddToRequest(b);f.BeginRequest(serverUrl,articleUpdated)}function articleUpdated(a){if(a.Messages[0].Message=="ok"){submitRequest()}}function recommendReviewAbox(a){var d=new RequestBatch();var c=new ArticleKey(a);var b=new RecommendAction(c);d.AddToRequest(b);d.BeginRequest(serverUrl,recommendationCompleteAbox)}function recommendationCompleteAbox(a){SubmitListRequest()}function recommendReviewList(a){var d=new RequestBatch();var c=new ArticleKey(a);var b=new RecommendAction(c);d.AddToRequest(b);d.BeginRequest(serverUrl,recommendationCompleteList)}function recommendationCompleteList(a){getRecentActivity()}function getRecentActivity(){var h=new Array(new Section("All"));var c=new Array(new Category("All"));var g=new Array(new UserTier("All"));var d=new Activity("Commented");var b=2;var a=5;if(cacheMostCommentedRecommended){renderRecentContent(cacheMostCommentedRecommended.ResponseBatch,5)}else{var f=new RequestBatch();var e=new DiscoverArticlesAction(h,c,g,d,b,a);f.AddToRequest(e);f.BeginRequest(serverUrl,renderRecentContent,5)}}function renderRecentContent(c,b){if(c.Responses.length>=1){var f=c.Responses[0].DiscoverArticlesAction;if(!b){b=f.DiscoveredArticles.length}else{if(b>f.DiscoveredArticles.length){b=f.DiscoveredArticles.length}}var e=document.getElementById("mostcommented_list");var a="
    ";for(var d=0;d";e.innerHTML=a}}function getArticleLink(b){var a="
  • "+unescape(b.PageTitle)+"
    ";a+="Comments "+b.Comments.NumberOfComments+" | ";if(b.Recommendations.CurrentUserHasRecommended=="True"){a+="Recommended"+b.Recommendations.NumberOfRecommendations+""}else{a+="Recommend "+b.Recommendations.NumberOfRecommendations+""}a+="
  • \n";return a}function getMostCommentedArticle(){var h=new Array(new Section("All"));var c=new Array(new Category("All"));var g=new Array(new UserTier("All"));var d=new Activity("Commented");var b=2;var a=5;var f=new RequestBatch();var e=new DiscoverArticlesAction(h,c,g,d,b,a);f.AddToRequest(e);f.BeginRequest(serverUrl,renderMostCommentedArticle)}function renderMostCommentedArticle(b){if(b.Responses.length==1){var e=b.Responses[0].DiscoverArticlesAction;var d=document.getElementById("mostcommented_list_article");if(d){var a="";for(var c=0;c"+a+"
"}}}function getArticleLinkArticle(b){var a="
  • "+unescape(b.PageTitle)+"";a+="
  • \n";return a}function getMostRecommendedArticle(){var h=new Array(new Section("All"));var c=new Array(new Category("All"));var g=new Array(new UserTier("All"));var d=new Activity("Recommended");var b=2;var a=5;var f=new RequestBatch();var e=new DiscoverArticlesAction(h,c,g,d,b,a);f.AddToRequest(e);f.BeginRequest(serverUrl,renderMostRecommendedArticle)}function renderMostRecommendedArticle(b){if(b.Responses.length==1){var e=b.Responses[0].DiscoverArticlesAction;var d=document.getElementById("mostrecommended_list_article");var a="";for(var c=0;c"+a+""}}var aboxMostCommented=new Array();var aboxMostRecommended=new Array();function getMostCommentedRecommendedArticleList(c){var l=new Array(new Section("All"));var f=new Array(new Category("All"));var g=new Array(new UserTier("All"));var e=new Activity("Commented");var a=new Activity("Recommended");var k=2;if(!c){c=3}if(cacheMostCommentedRecommended){renderMostCommentedArticle(cacheMostCommentedRecommended.ResponseBatch,c)}else{var h=new RequestBatch();var b=new DiscoverArticlesAction(l,f,g,e,k,c);var d=new DiscoverArticlesAction(l,f,g,a,k,c);h.AddToRequest(b);h.AddToRequest(d);h.BeginRequest(serverUrl,renderMostCommentedArticle)}}function getMostCommentedRecommendedArticleList2(c){var l=new Array(new Section("All"));var f=new Array(new Category("All"));var g=new Array(new UserTier("All"));var e=new Activity("Commented");var a=new Activity("Recommended");var k=2;if(!c){c=3}var h=new RequestBatch();var b=new DiscoverArticlesAction(l,f,g,e,k,c);var d=new DiscoverArticlesAction(l,f,g,a,k,c);h.AddToRequest(b);h.AddToRequest(d);h.BeginRequest(serverUrl,renderMostCommentedArticle)}function renderMostCommentedArticle(d,b){if(d.Responses.length>=1){var h=d.Responses[0].DiscoverArticlesAction;if(!b){b=5}if(b>h.DiscoveredArticles.length){b=h.DiscoveredArticles.length}if(aboxMostCommented.length>=1){for(var e=0;e"+a+""}}else{var g=document.getElementById("mostcommented_list_article");var a="";for(var e=0;e"+a+""}catch(f){}}}if(d.Responses.length>=2){var h=d.Responses[1].DiscoverArticlesAction;if(!b){b=5}if(b>h.DiscoveredArticles.length){b=h.DiscoveredArticles.length}if(aboxMostRecommended.length>=1){for(var e=0;e"+a+""}}else{var g=document.getElementById("mostrecommended_list_article");var a="";for(var e=0;e"+a+""}catch(f){}}}}function isLoggedIn(){var a=document.cookie.split(";");var b="";for(i=0;iLogin | Register";if(a){var f=a.contentWindow.document.getElementById("SiteLife_Login");if(f){f.innerHTML=d}}var b=document.getElementById("messagesiframe");if(b){var f=b.contentWindow.document.getElementById("Messages_NewMessageHead");if(f){f.innerHTML=d}}var e=document.getElementById("personaprofileiframe");if(e){var c=e.contentWindow.document.getElementById("ProfileEdit_SectionDescription_Link");c.style.display="none"}}function LoginPage(){var b=window.document.domain;var a="http://www."+b+"/share/users/login/";window.location.href=a}function RegPage(){var b=window.document.domain;var a="http://www."+b+"/share/users/register/";window.location.href=a}function changeForumLinks(){if(!isLoggedIn()){var b=document.getElementById("CreateDiscussion1");var a=document.getElementById("CreateDiscussion2");var d=document.getElementById("A1");var c=document.getElementById("ForumDiscussionAddPost");if(b){b.href="javascript:scroll(0,0);LoginPage();"}if(a){a.href="javascript:scroll(0,0);LoginPage();"}if(d){d.href="javascript:scroll(0,0);RegPage();";reg_att=d.attributes;for(i=0;i=0){userkey=a[x];b=userkey.substring(2,userkey.length);break}}}if(b!=""){var c=new UserKey(b);var e=new RequestBatch();e.AddToRequest(c);e.BeginRequest(serverUrl,renderUserData)}}function getUserInfo_old(a){if(typeof(a)!="undefined"&&a!=""){var b=new UserKey(a);var c=new RequestBatch();c.AddToRequest(b);c.BeginRequest(serverUrl,renderUserData)}}function renderUserData(f){if(f.Responses.length!=0){var d=f.Responses[0].User;var o=document.getElementById("status_links");var e=document.getElementById("user_messages");var l=document.getElementById("status_avatar");var c=document.getElementById("you_image");var n=document.getElementById("status_box_logged_in");var m=document.getElementById("status_box_logged_out");var a=document.getElementById("SitelifeJoin");var b=document.getElementById("SitelifeLogin");var h=document.getElementById("BillboardButtons");m.style.display="none";n.style.display="block";if(a){a.style.display="none"}if(b){b.style.display="none"}if(h){h.style.display="none"}var g="Welcome, "+d.DisplayName+"
    ";g+="My Profile | Logout
    ";var k=d.NumberOfMessages+" messages";o.innerHTML=g;e.innerHTML=k;l.src=d.AvatarPhotoUrl;c.src=d.AvatarPhotoUrl}}function SubmitListRequest(){var b=new RequestBatch();for(var a=0;aRecommended"}a.style.visibility="visible";k.style.visibility="visible"}}for(var c=0;cRecommended"}d.style.visibility="visible";f.style.visibility="visible"}}}function popUp(URL){day=new Date();id=day.getTime();eval("page"+id+" = window.open(URL, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=700,height=300,left = 390,top = 312');")}function billboardNav(a){var b=document.getElementById(a);location.href=b.value}function getCookieUUID(){var a=document.cookie.split(";");var e="";var c="";var b="";var d="";for(i=0;i0)||!showRecommendedOnly){if((h.Comments[f].Author.IsBlocked=="False"&&h.Comments[f].AbuseReportCount<4)||(h.Comments[f].Author.IsBlocked=="True"&&h.Comments[f].Author.UserKey.Key==a)){l+=getCommentHtml(h.Comments[f])}}}l+="
    ";var b=Math.ceil(c/10);if(showRecommendedOnly){showRecommendedOnly=1}else{showRecommendedOnly=0}if(b>1&&oncommentsPage!=1){l+=" <<First |";l+=" <Prev |"}for(var e=1;e<=b;e++){if(e==oncommentsPage){l+=" "+e+" "}else{l+=" "+e+""}}if(b>1&&oncommentsPage!=b){l+=" | Next> |";l+=" Last>>"}l+="
    ";m.innerHTML=l}}function getCommentHtml(b){var a="";a+='';a+='';a+='';a+='";a+='
    '+b.CommentBody+"
    ";a+='
    '+b.PostedAtTime+"
    ";a+='';a+='
    ';if(b.CurrentUserHasRecommended=="True"){a+='
    ';a+='
    ';a+='Recommended ('+b.NumberOfRecommendations+")
    "}else{a+='
    ';a+='"}a+='
    ';if(b.CurrentUserHasReportedAbuse=="True"){a+='
    ';a+='Reported
    '}else{a+=''}a+="
    ";return a}function getMostRecentPhotos(c){if(!c){c=5}var a=document.getElementById("recent_list_photos");if(cacheMostRecentPhotos){var b='
    ';b+='';b+=createPhotoHtml(cacheMostRecentPhotos.ResponseBatch,c);b+="
    ";a.innerHTML=b}}function createPhotoHtml(c,d){discoveredContent=c.Responses[0].DiscoverContentAction.DiscoveredContent;if(d>discoveredContent.length){d=discoveredContent.length}var b="";for(var a=0;a';b+='';b+='';b+='';b+='";b+='"}else{d++}}return b}function getBillboardLinks(){var k=document.getElementById("photo1link");var f=document.getElementById("photo2link");var e=document.getElementById("photo3link");var m=document.getElementById("photo1img");var d=document.getElementById("photo2img");var b=document.getElementById("photo3img");if(cacheMostRecentPhotos){discoveredContent=cacheMostRecentPhotos.ResponseBatch.Responses[0].DiscoverContentAction.DiscoveredContent;var s=0;for(var g=0;g=1){var f=document.getElementById("photo1link");var d=document.getElementById("photo2link");var c=document.getElementById("photo3link");var h=document.getElementById("photo1img");var b=document.getElementById("photo2img");var a=document.getElementById("photo3img");var k=g.Responses[0].DiscoverContentAction.DiscoveredContent;var l=0;for(var e=0;e";b.innerHTML=a}};